home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / graphics / pictures.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  1.8 KB  |  62 lines

  1. #ifndef GRAPHICS_PICTURES_H
  2. #define GRAPHICS_PICTURES_H TRUE
  3.  
  4. /*
  5. **  $VER: pictures.h
  6. **
  7. **  Picture Definitions.
  8. **
  9. **  (C) Copyright 1996-1998 DreamWorld Productions.
  10. **      All Rights Reserved.
  11. */
  12.  
  13. #ifndef DPKERNEL_H
  14. #include <dpkernel/dpkernel.h>
  15. #endif
  16.  
  17. /***************************************************************************
  18. ** The picture structure for loading and depacking of pictures
  19. */
  20.  
  21. #define VER_PICTURE  2
  22. #define TAGS_PICTURE ((ID_SPCTAGS<<16)|ID_PICTURE)
  23.  
  24. typedef struct Picture {
  25.   struct Head Head;      /* [00] Standard header structure */
  26.   struct Bitmap *Bitmap; /* [12] Bitmap details */
  27.   LONG   Options;        /* [16] Flags like IMG_REMAP */
  28.   APTR   Source;         /* [20] Filename for this picture, if any */
  29.   WORD   ScrMode;        /* [24] Intended screen mode for picture */
  30.   WORD   ScrHeight;      /* [26] Screen height */
  31.   WORD   ScrWidth;       /* [28] Screen width */
  32.  
  33.   /*** Private flags below ***/
  34.  
  35.   APTR   prvHeader;      /* Information header */
  36.   APTR   prvPalette;     /* Palette allocation pointer */
  37.   APTR   prvData;        /* */
  38. } OBJ_PICTURE;
  39.  
  40. /***************************************************************************
  41. ** Picture Tags.
  42. */
  43.  
  44. #define PCA_BitmapTags (TSTEPIN|12)
  45. #define PCA_Options    (TLONG|16)
  46. #define PCA_Source     (TAPTR|20)
  47. #define PCA_ScrMode    (TWORD|24)
  48. #define PCA_ScrHeight  (TWORD|26)
  49. #define PCA_ScrWidth   (TWORD|28)
  50.  
  51. /***************************************************************************
  52. ** Image Flags.
  53. */
  54.  
  55. #define IMG_RESIZEX   0x00000001      /* Allow resize on X axis */
  56. #define IMG_NOCOMPARE 0x00000002      /* Do not compare palettes */
  57. #define IMG_REMAP     0x00000004      /* Allow remapping */
  58. #define IMG_RESIZEY   0x00000008      /* Allow resize on Y axis */
  59. #define IMG_RESIZE    (IMG_RESIZEX|IMG_RESIZEY)
  60.  
  61. #endif /* GRAPHICS_PICTURES_H */
  62.